﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace Examen2008Facturas
{
    public partial class MenuPrincipal : Form
    {
        ArrayList arrayArticulos = new ArrayList();

        public MenuPrincipal()
        {
            InitializeComponent();


        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btAceptar_Click(object sender, EventArgs e)
        {
            //IntroducirArticulos f = new IntroducirArticulos(ref arrayArticulos);
            //is.Hide();//Lo oculta..
            //f.ShowDialog();

            if (tbLogin.Text == "javi" && tbPass.Text == "lol")
            {

                this.DialogResult = DialogResult.OK;
            }
            else
            {
                epLogin.SetError(tbLogin, "Introduzca un Usuario registrado");
                epPass.SetError(tbPass, "Introduzca bien la contraseña");
            }

            
            
        }
    }
}
